# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libido3
pkgver=13.10.0
pkgrel=0
pkgdesc="Library for indicator display objects"
url="https://launchpad.net/ido"
arch="all"
options="!check" # broken testsuite
license="(LGPL-2.1-only OR LGPL-3.0-only) AND GPL-3.0-only AND LGPL-2.0+"
makedepends="gtk+3.0-dev autoconf automake libtool gobject-introspection-dev
	gtk-doc vala gtest-dev"
subpackages="$pkgname-dev"
source="http://archive.ubuntu.com/ubuntu/pool/universe/i/ido/ido_$pkgver+17.04.20161028.orig.tar.gz
	ubuntu-private.patch
	"
builddir="$srcdir"

prepare() {
	default_prepare
	autoreconf -vif
}

build() {
	CFLAGS="-Wno-error" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-ubuntu-private-api
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
867157c9e316eb5ed69ebdf1017ed86990aabf7a885ba26acab36782f0f27e10b4621a7db15ac90335e808022490a98560d5ff443e6f697c578eed5868385ebd  ido_13.10.0+17.04.20161028.orig.tar.gz
303870b73831c469c0b1df523cc3e4a54fd32a4dd3b2b76ba6940b143ae8a9114833ddb421080ca7335adb3e2f2d39addfeaa710e517f3d214fb13283bd626e4  ubuntu-private.patch
"
